import React, { useContext } from 'react';
import MyContext from '../libs/context'
import { Button } from 'antd'

export default () => {
  let { store, dispatch } = useContext(MyContext)
  return <div style={{ border: '1px solid #000' }}>
    <h1>grandson</h1>
    {store.count}

    <Button onClick={() => dispatch({ type: 'add' })}>孙子组件</Button>
  </div>
}